package com.wxh.order.feign;

import com.wxh.config.ServiceFeignConfig;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author wxh
 */
@FeignClient(name = "service", url = "http://localhost:8761", configuration = ServiceFeignConfig.class)
public interface ServiceFeignClient {

    /**
     * 获取eureka服务信息，需要用户登陆
     *
     * @param serviceName
     * @return
     */
    @RequestMapping("/eureka/apps/{serviceName}")
    public String getServiceInfo(@PathVariable("serviceName") String serviceName);

}
